<template>
	<view class="container">
		<view class="status">
			<text>购买成功</text>
		</view>
		
		<view class="show_name">
			<text>{{name}}</text>
		</view>
		
		<view class="code_row">
			<view class="p">
				支付金额
			</view>
			<view class="b">
				¥{{total}}
			</view>
		</view>
		
		<view class="code_tips mt100">
			<text>订单信息可在“订单 - 全部”中查看</text>
		</view>
		
		<button type="primary" class="btn_back" @click="onBackClick">返回</button>
	</view>
</template>

<script>
	import { runGetLevelupData } from '@/module/api'
    import WxNotificationCenter from '@/libs/WxNotificationCenter/wxnotificationcenter'
	
	const _ = require("@/libs/underscore/underscore-min.js")._
	
	export default {
		data() {
			return {
				total: '--',
				name: "---------"
			};
		},
		
		computed: {
			shareAppMessage () {
				return this.$store.state.shareAppMessage
			},
			
			userInfo () {
				return this.$store.state.userInfo
			}
		},
		
		onLoad (options) {
			if(options.goodName) this.name = options.goodName
			if(options.price) this.total = options.price
		},
		
		methods:{
			onBackClick () {
				uni.reLaunch({
					url: "/pages/index/index"
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	
	
	.code_row{
		width: 690px;
		height: 136px;
		align-items: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
		background: #f7f7f7;
		margin: 60px auto 0;
		
		.p{
			font-size: 28px;
			color: #333333;
		}
		
		.b{
			margin-top: 16px;
			color: #FF2D5E;
			font-size: 36px;
		}
	}
	
	.code_tips{
		margin-top: 10px;
		font-size: 26px;
		color: #999;
		text-align: center;
		
		&.mt100{
			margin-top: 100px;
		}
	}
	
	.status{
		margin-top: 60px;
		font-size: 36px;
		color: #FF2D5E;
		text-align: center;
	}
	
	.show_name{
		margin-top: 40px;
		font-size: 28px;
		color: #333333;
		text-align: center;
	}
	
	.good_name{
		margin: 4px auto 0;
		font-size: 24px;
		color: #666666;
		text-align: center;
		width: 690px;
	}
	
	.btn_back{
		color: #FF2D5E;
		font-size: 32px;
		margin: 250px auto 0;
		width: 370px;
		height: 88px;
		border-radius: 44px;
		border: 1px solid #FF2D5E;
		align-items: center;
		display: flex;
		justify-content: center;
		background: #FFFFFF;
	}
</style>
